package com.lxy.demo.controller;

import com.lxy.demo.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("two")
public class TtwoController {

    @GetMapping("/findUser/{id}")
    public User findUser(@PathVariable("id") Integer id){
        User user = new User();
        user.setId(id);
        user.setName("马超");
        return user;
    }
}
